#define _CRT_SECURE_NO_WARNING
#include"priority_queue.h"

void Test1()
{
	lz::priority_queue<int, std::vector<int>, lz::less<int>> pq1;
	pq1.push(1);
	pq1.push(2);
	pq1.push(3);
	pq1.push(4);
	pq1.push(5);
	pq1.push(6);

	while (!pq1.empty())
	{
		cout << pq1.top() << " ";
		pq1.pop();
	}
	cout << endl;

	std::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(9);
	v1.push_back(8);

	lz::priority_queue<int, std::vector<int>, lz::greater<int>> 
		pq(v1.begin(), v1.end());

	while (!pq.empty())
	{
		cout << pq.top() << " ";
		pq.pop();
	}
	
}

int main()
{
	Test1();

	return 0;
}